$(document).ready(function(){
  $('.title-menu>li').click(function(){
    $(this).addClass('active').siblings('.active').removeClass('active')
    if($(this).data('url')!=null)
      window.location.href = $(this).data('url')
  })

  if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) || (/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){
    try{
      if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){
        //触屏手机版地址
        window.location.href="/m-index.html";
      }else if(/iPad/i.test(navigator.userAgent)){
        //pad版地址
        window.location.href="/m-index.html";
      }else{
        window.location.href="/m-index.html"
      }
    }catch(e){}
  }
})
